package com.JZ.QM.feign;

import com.JZ.QM.common.utils.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

/**
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020/7/3 21:27
 */
@FeignClient("data-service")
public interface DataFeginService {

    @RequestMapping("/ProductLibraryIncome/getPrice")
    CommonResult getPrice(@RequestParam("proIncomeTsCode") String proIncomeTsCode);

    @RequestMapping("/newCombinationShare/getCombinationShareList")
    CommonResult getCombinationShareList(@RequestParam("comBaseId") Long comBaseId);

    @RequestMapping("/combinationDynamicInfo/updateCombinationDynamicInfo")
    CommonResult updateCombinationDynamicInfo(@RequestParam("comBaseId")Long comBaseId,
                                              @RequestParam("collectNum")Integer collectNum,
                                              @RequestParam("visitNum") Integer visitNum,
                                              @RequestParam("transactionNum") Integer transactionNum,
                                              @RequestParam("purchaseNum")Integer purchaseNum);
}
